package com.car.oop;

public class Benchi extends  Car{
    int price;
    String type;
    public Benchi(){

    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public  Benchi(int price, String type){
        this.price = price;
        this.type = type;

    }
    public void Accelerate(){
        System.out.println(getBrand()+"汽车正在加速行驶");
    }

    public static void main(String[] args) {


        Aodi aodi = new Aodi(100,"suv");
        aodi.setBrand("法拉利");
        aodi.variableSpeed();
        Benchi benchi = new Benchi(200,"敞篷");
        benchi.setBrand("路虎");
        benchi.Accelerate();

    }

}
